﻿using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;

namespace FreeWorship
{
	public partial class LiveForm : Form
	{
		private Bitmap textBitmap = null;
		
		public LiveForm()
		{
			InitializeComponent();
		}
	
		public void updateBitmapAndRepaint(Bitmap bitmap)
		{
			this.textBitmap=bitmap;
			this.Invalidate();
		}
		
		void LiveFormPaint(object sender, PaintEventArgs e)
		{
			
			Graphics formGraphics = this.CreateGraphics();
		
			if(textBitmap!=null)
				formGraphics.DrawImage(textBitmap,0,0 );
			formGraphics.Dispose();
			
		}
		
	}
}
